From: Zeeshan Ali (Khattak) Date: Mon, 17 Feb 2014 01:20:28 +0000 (+0000) Subject: location: Rename _updateMenuVisibility to _updateMenu X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~2767 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=59634b2cf5035990983197209ad6a1929db21ae4;p=gnome-shell.git location: Rename _updateMenuVisibility to _updateMenu We'll soon be doing more than just toggling the accuracy of menu itself in this function. Hence the renaming. https://bugzilla.gnome.org/show_bug.cgi?id=723684 --- diff --git a/js/ui/status/location.js b/js/ui/status/location.js index d7243c13c..5661b57ce 100644 --- a/js/ui/status/location.js +++ b/js/ui/status/location.js @@ -122,7 +122,7 @@ const Indicator = new Lang.Class({ this._propertiesChangedId = this._proxy.connect('g-properties-changed', Lang.bind(this, this._onGeocluePropsChanged)); - this._updateMenuVisibility(); + this._updateMenu(); this._syncIndicator(); this._proxy.AddAgentRemote('gnome-shell', Lang.bind(this, this._onAgentRegistered)); @@ -177,7 +177,7 @@ const Indicator = new Lang.Class({ this._agent.emit_property_changed('MaxAccuracyLevel', variant); }, - _updateMenuVisibility: function() { + _updateMenu: function() { this._availableAccuracyLevel = this._proxy.AvailableAccuracyLevel; this.menu.actor.visible = (this._availableAccuracyLevel != 0); }, @@ -187,7 +187,7 @@ const Indicator = new Lang.Class({ if ("InUse" in unpacked) this._syncIndicator(); if ("AvailableAccuracyLevel" in unpacked) - this._updateMenuVisibility(); + this._updateMenu(); } });